import React from "react";
import { useLocation } from "react-router-dom";
import { ListState } from '../../types'
const Index: React.FC = () => {
  const location = useLocation();
  const state = location.state as ListState
  return <div>
    <img src={state.image} alt="" width={'100%'}/>
    <h3>{ state.title }</h3>
  </div>;
};

export default Index;
